package com.chenjiahao.kaiyanwan.ui.mine

import android.app.Activity
import android.os.Bundle
import com.chenjiahao.kaiyanwan.R
import com.chenjiahao.kaiyanwan.base.BaseFragment
import kotlinx.android.synthetic.main.fragment_mine.*

class MineFragment : BaseFragment() {
    override fun getLayoutId(): Int = R.layout.fragment_mine

    private var mTitle: String? = null


    companion object {
        fun getInstance(title: String): MineFragment {
            val fragment = MineFragment()
            val bundle = Bundle()
            fragment.arguments = bundle
            fragment.mTitle = title
            return fragment
        }
    }

    override fun initView() {
        tv_watch_history.setOnClickListener{
            com.chenjiahao.kaiyanwan.startActivity<WatchHistoryActivity>(activity as Activity,it){}
        }
    }

    override fun lazyLoad() {
    }
}